package org.biubiu0002.baiblog.core.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.biubiu0002.baiblog.core.model.entity.FriendshipEntity;

import java.util.List;

/**
 * @Author: biubiu0002
 * @Date: 2022/8/1 11:02
 **/
@Mapper
public interface FriendshipDao extends BaseMapper<FriendshipEntity> {

    void follow(FriendshipEntity friendshipEntity);

    List<FriendshipEntity> queryFollowsByUid(@Param("uid") String uid);

    List<FriendshipEntity> queryFansByUid(@Param("uid") String uid);
}
